package com.LostAndFound.web.servlet;

import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.LostAndFound.service.CheckIssueService;

public class CheckIssueServlet extends BaseServlet {
	private static final long serialVersionUID = 1L;
	
	CheckIssueService service = new CheckIssueService();
	
	// 确认用户的申请通过，允许发布
	public void confrimIssueCheckInfo(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		String aid = request.getParameter("aid");
		boolean success = false;
		success = service.confrimIssueCheckInfo(aid);
		response.setContentType("text/html;charset=utf-8");
		response.getWriter().write("{\"success\":"+success+"}");
	}
	// 标为虚假欺诈信息
	public void markedAsFlase(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		String aid = request.getParameter("aid");
		boolean success = false;
		success = service.markedAsFlase(aid);
		response.setContentType("text/html;charset=utf-8");
		response.getWriter().write("{\"success\":"+success+"}");
	}
}